package com.chaos.order.api.data;

import com.chaos.framework.model.data.DATA;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TPayFlowData", description = "支付流水表")
public class TPayFlowData extends DATA {


    @ApiModelProperty(value = "订单编号")
    private String orderNo;


    @ApiModelProperty(value = "商户id")
    private Long merchantId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "三方订单号")
    private String thirdOrderNo;


    @ApiModelProperty(value = "三方交易单号")
    private String thirdFlowNo;


    @ApiModelProperty(value = "支付金额")
    private BigDecimal totalAmount;


    @ApiModelProperty(value = "订单来源( 1: 微信小程序  )")
    private Integer channel;


    @ApiModelProperty(value = "支付方式(  1:支付宝 2:微信 3:个人余额 4：企业余额   )")
    private Integer payType;


    @ApiModelProperty(value = "支付场景(1:扫码支付 2:app支付 3:H5支付 4:公众号支付 5:小程序支付 )")
    private Integer payTradeType;


    @ApiModelProperty(value = "支付状态（1：未支付  2：已支付）")
    private Integer status;

}
